/**
 * Created by IntelliJ IDEA.
 * User: Qiang
 * Date: 23.11.2008
 * Time: 11:31:20
 */
package example;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;

import example.jaxws.SearchProcess;

@WebService()
public class SemanticRef {

    @WebMethod
    // this is the start point for Webservice
    public String search(String searchInput) {
        String result = SearchProcess.creatResult(searchInput);

        return result;
    }

    // this method ist only for test.
    public static void main(String[] argv) {
        Object implementor = new SemanticRef();
        String address = "http://localhost:8080/SemanticRef";
        Endpoint.publish(address, implementor);
    }
}